vtd: don't assume addresses are aligned in sync_cache
authorRoger Pau Monné <roger.pau@citrix.com>
Tue, 7 Jul 2020 13:23:26 +0000 (15:23 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 7 Jul 2020 13:23:26 +0000 (15:23 +0200)
commit37c853a0bcb214f3de66cc44622287ef89cb51d1
tree76c00f23ba48da1d066c514b4fe383fc7fb3843d
parent8bf72ea432bb078d9483639d4bf9b756333374a9
vtd: don't assume addresses are aligned in sync_cache

Current code in sync_cache assume that the address passed in is
aligned to a cache line size. Fix the code to support passing in
arbitrary addresses not necessarily aligned to a cache line size.

This is part of XSA-321.

Reported-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
master commit: b6d9398144f21718d25daaf8d72669a75592abc5
master date: 2020-07-07 14:39:05 +0200
xen/drivers/passthrough/vtd/iommu.c